package com.ruoyi.ems.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 商品对象 ems_product
 * 
 * @author sh
 * @date 2023-12-11
 */
public class Product extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 名称 */
    @Excel(name = "名称")
    private String name;

    /** 编码 */
    @Excel(name = "编码")
    private String code;

    /** 图片 */
    @Excel(name = "图片")
    private String image;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date creatTime;

    /** 售卖积分 */
    @Excel(name = "售卖积分")
    private Long sellScore;

    /** 库存 */
    @Excel(name = "库存")
    private Long stock;

    /** 卡劵：coupons  饮品：goods */
    @Excel(name = "卡劵：coupons  饮品：goods")
    private String type;

    /** 商品状态 上架=PUTAWAY  下架 = DELIST */
    @Excel(name = "商品状态 上架=PUTAWAY  下架 = DELIST")
    private String status;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setCode(String code) 
    {
        this.code = code;
    }

    public String getCode() 
    {
        return code;
    }
    public void setImage(String image) 
    {
        this.image = image;
    }

    public String getImage() 
    {
        return image;
    }
    public void setCreatTime(Date creatTime) 
    {
        this.creatTime = creatTime;
    }

    public Date getCreatTime() 
    {
        return creatTime;
    }
    public void setSellScore(Long sellScore) 
    {
        this.sellScore = sellScore;
    }

    public Long getSellScore() 
    {
        return sellScore;
    }
    public void setStock(Long stock) 
    {
        this.stock = stock;
    }

    public Long getStock() 
    {
        return stock;
    }
    public void setType(String type) 
    {
        this.type = type;
    }

    public String getType() 
    {
        return type;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("code", getCode())
            .append("image", getImage())
            .append("creatTime", getCreatTime())
            .append("sellScore", getSellScore())
            .append("stock", getStock())
            .append("type", getType())
            .append("status", getStatus())
            .toString();
    }
}
